<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>TermsDict</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >BIS</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;TermsDict
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="TermsDict-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="TermsDict-module.html">Module TermsDict</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/env  python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># -*- coding: cp936 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Brief:        python file</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Author:       Aragon&lt;zmule@163.com&gt;</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Last Change:  2007-08-29 14:11:03</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Version:      0.1</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">"""&#39029;&#38754;&#20851;&#38190;&#35789;&#30340;&#23383;&#20856;&#25968;&#25454;&#32467;&#26500;</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    @version: 0.1</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring">    @author: </tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable Term.__revision__=Term-module.html#__revision__,Variable TermsDict.__revision__=TermsDict-module.html#__revision__,Variable Weight.__revision__=Weight-module.html#__revision__,Variable barChart.__revision__=barChart-module.html#__revision__"><a title="Term.__revision__
TermsDict.__revision__
Weight.__revision__
barChart.__revision__" class="py-name" href="#" onclick="return doclink('link-0', '__revision__', 'link-0');">__revision__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'0.1'</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">dict4ini</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="TermsDict"></a><div id="TermsDict-def"><a name="L21"></a><tt class="py-lineno"> 21</tt> <a class="py-toggle" href="#" id="TermsDict-toggle" onclick="return toggle('TermsDict');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html">TermsDict</a><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="TermsDict-expanded"><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">    <tt class="py-docstring">"""dict{&#25991;&#20214;&#21517;:{term: WebCount AllWebCount WeightTF Weight }}</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring">        WebCount = 1 AllWebCount = 2 WeightTF = 3 Weight = 4 </tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt class="py-comment">#const for array index</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-1" class="py-name" targets="Variable TermsDict.TermsDict.WebCount=TermsDict.TermsDict-class.html#WebCount"><a title="TermsDict.TermsDict.WebCount" class="py-name" href="#" onclick="return doclink('link-1', 'WebCount', 'link-1');">WebCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">    <tt id="link-2" class="py-name" targets="Variable TermsDict.TermsDict.PreWebCount=TermsDict.TermsDict-class.html#PreWebCount"><a title="TermsDict.TermsDict.PreWebCount" class="py-name" href="#" onclick="return doclink('link-2', 'PreWebCount', 'link-2');">PreWebCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt id="link-3" class="py-name" targets="Variable TermsDict.TermsDict.TodayWebCount=TermsDict.TermsDict-class.html#TodayWebCount"><a title="TermsDict.TermsDict.TodayWebCount" class="py-name" href="#" onclick="return doclink('link-3', 'TodayWebCount', 'link-3');">TodayWebCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt id="link-4" class="py-name" targets="Variable TermsDict.TermsDict.AllWebCount=TermsDict.TermsDict-class.html#AllWebCount"><a title="TermsDict.TermsDict.AllWebCount" class="py-name" href="#" onclick="return doclink('link-4', 'AllWebCount', 'link-4');">AllWebCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">3</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt id="link-5" class="py-name" targets="Variable TermsDict.TermsDict.WeightTF=TermsDict.TermsDict-class.html#WeightTF"><a title="TermsDict.TermsDict.WeightTF" class="py-name" href="#" onclick="return doclink('link-5', 'WeightTF', 'link-5');">WeightTF</a></tt> <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt id="link-6" class="py-name" targets="Variable TermsDict.TermsDict.Weight=TermsDict.TermsDict-class.html#Weight,Module Weight=Weight-module.html,Class Weight.Weight=Weight.Weight-class.html"><a title="TermsDict.TermsDict.Weight
Weight
Weight.Weight" class="py-name" href="#" onclick="return doclink('link-6', 'Weight', 'link-6');">Weight</a></tt> <tt class="py-op">=</tt> <tt class="py-number">5</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.__init__"></a><div id="TermsDict.__init__-def"><a name="L33"></a><tt class="py-lineno"> 33</tt> <a class="py-toggle" href="#" id="TermsDict.__init__-toggle" onclick="return toggle('TermsDict.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.__init__-expanded"><a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-docstring">"""&#32570;&#30465;&#35835;&#20837;WebCount.ini&#25991;&#20214;&#65292;&#21547;&#26377;&#27599;&#20010;&#39029;&#38754;&#30340;&#20851;&#38190;&#23383;&#30340;&#20449;&#24687;"""</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt> <tt class="py-op">=</tt> <tt class="py-name">dict4ini</tt><tt class="py-op">.</tt><tt class="py-name">DictIni</tt><tt class="py-op">(</tt><tt class="py-name">inifile</tt><tt class="py-op">=</tt><tt class="py-string">'WebCount.ini'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_items</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">filesDate</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">terms</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">directory</tt> <tt class="py-op">=</tt> <tt class="py-string">'./html/'</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timeSeparate</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-number">24</tt> <tt class="py-op">*</tt> <tt class="py-number">3600</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method TermsDict.TermsDict.readFileDate()=TermsDict.TermsDict-class.html#readFileDate"><a title="TermsDict.TermsDict.readFileDate" class="py-name" href="#" onclick="return doclink('link-7', 'readFileDate', 'link-7');">readFileDate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>  </tt>
</div><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.loadHtml"></a><div id="TermsDict.loadHtml-def"><a name="L48"></a><tt class="py-lineno"> 48</tt> <a class="py-toggle" href="#" id="TermsDict.loadHtml-toggle" onclick="return toggle('TermsDict.loadHtml');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#loadHtml">loadHtml</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">directory</tt><tt class="py-op">=</tt><tt class="py-string">'html'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.loadHtml-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.loadHtml-expanded"><a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">directory</tt> <tt class="py-op">=</tt> <tt class="py-string">'./'</tt> <tt class="py-op">+</tt> <tt class="py-name">directory</tt> <tt class="py-op">+</tt> <tt class="py-string">'/'</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">filename</tt> <tt class="py-keyword">in</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">listdir</tt><tt class="py-op">(</tt><tt class="py-name">directory</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">filename</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.html'</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-name">filename</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.htm'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt><tt class="py-op">[</tt><tt class="py-name">filename</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="TermsDict.TermsDict.readFileDate" class="py-name" href="#" onclick="return doclink('link-8', 'readFileDate', 'link-7');">readFileDate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.readFileDate"></a><div id="TermsDict.readFileDate-def"><a name="L56"></a><tt class="py-lineno"> 56</tt> <a class="py-toggle" href="#" id="TermsDict.readFileDate-toggle" onclick="return toggle('TermsDict.readFileDate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#readFileDate">readFileDate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.readFileDate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.readFileDate-expanded"><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">file</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt><tt class="py-op">.</tt><tt class="py-name">keys</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">filesDate</tt><tt class="py-op">[</tt><tt class="py-name">file</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">stat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">directory</tt> <tt class="py-op">+</tt> <tt class="py-name">file</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">st_atime</tt> </tt>
</div><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.queryAllTerms"></a><div id="TermsDict.queryAllTerms-def"><a name="L60"></a><tt class="py-lineno"> 60</tt> <a class="py-toggle" href="#" id="TermsDict.queryAllTerms-toggle" onclick="return toggle('TermsDict.queryAllTerms');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#queryAllTerms">queryAllTerms</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.queryAllTerms-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.queryAllTerms-expanded"><a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">file</tt><tt class="py-op">,</tt> <tt class="py-name">terms</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt> <tt class="py-name">term</tt> <tt class="py-keyword">in</tt> <tt class="py-name">terms</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">                <tt class="py-comment">#&#23558;&#25991;&#20214;&#20013;&#30340;&#25991;&#26412;&#25968;&#25454;&#36716;&#25442;&#25104;&#25972;&#24418;&#21644;&#28014;&#28857;</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt class="py-name">term</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">[</tt><tt class="py-number">5</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">                <tt class="py-comment">#&#24403;&#21069;&#25991;&#20214;&#21644;&#20854;&#20182;&#25991;&#20214;&#27604;&#36739;&#21518;&#65292;&#21457;&#29616;&#26377;&#30456;&#21516;&#30340;&#23383;&#65292;&#21152;&#20837;&#20197;&#21069;&#21644;&#24403;&#21069;&#26085;&#23376;&#24341;&#29992;&#25968;</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt class="py-keyword">for</tt> <tt class="py-name">file1</tt><tt class="py-op">,</tt> <tt class="py-name">terms1</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">file</tt> <tt class="py-op">!=</tt> <tt class="py-name">file1</tt><tt class="py-op">:</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">terms1</tt><tt class="py-op">:</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">filesDate</tt><tt class="py-op">[</tt><tt class="py-name">file</tt><tt class="py-op">]</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">timeSeparate</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">                                <tt class="py-name">term</tt><tt class="py-op">[</tt><tt id="link-9" class="py-name" targets="Module TermsDict=TermsDict-module.html,Class TermsDict.TermsDict=TermsDict.TermsDict-class.html"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-9', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="TermsDict.TermsDict.PreWebCount" class="py-name" href="#" onclick="return doclink('link-10', 'PreWebCount', 'link-2');">PreWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">                                <tt class="py-name">term</tt><tt class="py-op">[</tt><tt id="link-11" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-11', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="TermsDict.TermsDict.TodayWebCount" class="py-name" href="#" onclick="return doclink('link-12', 'TodayWebCount', 'link-3');">TodayWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">                            <tt class="py-name">term</tt><tt class="py-op">[</tt><tt id="link-13" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-13', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="TermsDict.TermsDict.AllWebCount" class="py-name" href="#" onclick="return doclink('link-14', 'AllWebCount', 'link-4');">AllWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> \ </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">                                    <tt class="py-name">term</tt><tt class="py-op">[</tt><tt id="link-15" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-15', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="TermsDict.TermsDict.PreWebCount" class="py-name" href="#" onclick="return doclink('link-16', 'PreWebCount', 'link-2');">PreWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> \ </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">                                    <tt class="py-name">term</tt><tt class="py-op">[</tt><tt id="link-17" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-17', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="TermsDict.TermsDict.TodayWebCount" class="py-name" href="#" onclick="return doclink('link-18', 'TodayWebCount', 'link-3');">TodayWebCount</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.save"></a><div id="TermsDict.save-def"><a name="L77"></a><tt class="py-lineno"> 77</tt> <a class="py-toggle" href="#" id="TermsDict.save-toggle" onclick="return toggle('TermsDict.save');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.save-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.save-expanded"><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-docstring">"""&#20445;&#23384;&#25968;&#25454;&#32467;&#26500;&#25991;&#20214;"""</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Method TermsDict.TermsDict.queryAllTerms()=TermsDict.TermsDict-class.html#queryAllTerms"><a title="TermsDict.TermsDict.queryAllTerms" class="py-name" href="#" onclick="return doclink('link-19', 'queryAllTerms', 'link-19');">queryAllTerms</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt class="py-name">ini</tt> <tt class="py-op">=</tt> <tt class="py-name">dict4ini</tt><tt class="py-op">.</tt><tt class="py-name">DictIni</tt><tt class="py-op">(</tt><tt class="py-name">inifile</tt><tt class="py-op">=</tt><tt class="py-string">'WebCount.ini'</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-name">ini</tt><tt class="py-op">.</tt><tt class="py-name">clear</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">ini</tt><tt class="py-op">.</tt><tt class="py-name">_items</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">files</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-name">ini</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Method TermsDict.TermsDict.save()=TermsDict.TermsDict-class.html#save"><a title="TermsDict.TermsDict.save" class="py-name" href="#" onclick="return doclink('link-20', 'save', 'link-20');">save</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>  </tt>
</div><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">    <tt class="py-comment">#--------------------------------</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#get set </tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#--------------------------------</tt> </tt>
<a name="TermsDict.getWebCount"></a><div id="TermsDict.getWebCount-def"><a name="L88"></a><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="TermsDict.getWebCount-toggle" onclick="return toggle('TermsDict.getWebCount');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getWebCount">getWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getWebCount-expanded"><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-21" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-21', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="TermsDict.TermsDict.WebCount" class="py-name" href="#" onclick="return doclink('link-22', 'WebCount', 'link-1');">WebCount</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setWebCount"></a><div id="TermsDict.setWebCount-def"><a name="L91"></a><tt class="py-lineno"> 91</tt> <a class="py-toggle" href="#" id="TermsDict.setWebCount-toggle" onclick="return toggle('TermsDict.setWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setWebCount">setWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">count</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setWebCount-expanded"><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-23" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-23', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="TermsDict.TermsDict.WebCount" class="py-name" href="#" onclick="return doclink('link-24', 'WebCount', 'link-1');">WebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">count</tt> </tt>
</div><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.getPreWebCount"></a><div id="TermsDict.getPreWebCount-def"><a name="L94"></a><tt class="py-lineno"> 94</tt> <a class="py-toggle" href="#" id="TermsDict.getPreWebCount-toggle" onclick="return toggle('TermsDict.getPreWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getPreWebCount">getPreWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getPreWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getPreWebCount-expanded"><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-25" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-25', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="TermsDict.TermsDict.PreWebCount" class="py-name" href="#" onclick="return doclink('link-26', 'PreWebCount', 'link-2');">PreWebCount</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setPreWebCount"></a><div id="TermsDict.setPreWebCount-def"><a name="L97"></a><tt class="py-lineno"> 97</tt> <a class="py-toggle" href="#" id="TermsDict.setPreWebCount-toggle" onclick="return toggle('TermsDict.setPreWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setPreWebCount">setPreWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">count</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setPreWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setPreWebCount-expanded"><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-27" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-27', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="TermsDict.TermsDict.PreWebCount" class="py-name" href="#" onclick="return doclink('link-28', 'PreWebCount', 'link-2');">PreWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">count</tt> </tt>
</div><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.getTodayWebCount"></a><div id="TermsDict.getTodayWebCount-def"><a name="L100"></a><tt class="py-lineno">100</tt> <a class="py-toggle" href="#" id="TermsDict.getTodayWebCount-toggle" onclick="return toggle('TermsDict.getTodayWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getTodayWebCount">getTodayWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getTodayWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getTodayWebCount-expanded"><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-29" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-29', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="TermsDict.TermsDict.TodayWebCount" class="py-name" href="#" onclick="return doclink('link-30', 'TodayWebCount', 'link-3');">TodayWebCount</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setTodayWebCount"></a><div id="TermsDict.setTodayWebCount-def"><a name="L103"></a><tt class="py-lineno">103</tt> <a class="py-toggle" href="#" id="TermsDict.setTodayWebCount-toggle" onclick="return toggle('TermsDict.setTodayWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setTodayWebCount">setTodayWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">count</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setTodayWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setTodayWebCount-expanded"><a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-31" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-31', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="TermsDict.TermsDict.TodayWebCount" class="py-name" href="#" onclick="return doclink('link-32', 'TodayWebCount', 'link-3');">TodayWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">count</tt> </tt>
</div><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.getAllWebCount"></a><div id="TermsDict.getAllWebCount-def"><a name="L106"></a><tt class="py-lineno">106</tt> <a class="py-toggle" href="#" id="TermsDict.getAllWebCount-toggle" onclick="return toggle('TermsDict.getAllWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getAllWebCount">getAllWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getAllWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getAllWebCount-expanded"><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-33" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-33', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="TermsDict.TermsDict.AllWebCount" class="py-name" href="#" onclick="return doclink('link-34', 'AllWebCount', 'link-4');">AllWebCount</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setAllWebCount"></a><div id="TermsDict.setAllWebCount-def"><a name="L109"></a><tt class="py-lineno">109</tt> <a class="py-toggle" href="#" id="TermsDict.setAllWebCount-toggle" onclick="return toggle('TermsDict.setAllWebCount');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setAllWebCount">setAllWebCount</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">count</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setAllWebCount-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setAllWebCount-expanded"><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-35" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-35', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="TermsDict.TermsDict.AllWebCount" class="py-name" href="#" onclick="return doclink('link-36', 'AllWebCount', 'link-4');">AllWebCount</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">count</tt> </tt>
</div><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.getWeightTF"></a><div id="TermsDict.getWeightTF-def"><a name="L112"></a><tt class="py-lineno">112</tt> <a class="py-toggle" href="#" id="TermsDict.getWeightTF-toggle" onclick="return toggle('TermsDict.getWeightTF');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getWeightTF">getWeightTF</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getWeightTF-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getWeightTF-expanded"><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-37" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-37', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="TermsDict.TermsDict.WeightTF" class="py-name" href="#" onclick="return doclink('link-38', 'WeightTF', 'link-5');">WeightTF</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setWeightTF"></a><div id="TermsDict.setWeightTF-def"><a name="L115"></a><tt class="py-lineno">115</tt> <a class="py-toggle" href="#" id="TermsDict.setWeightTF-toggle" onclick="return toggle('TermsDict.setWeightTF');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setWeightTF">setWeightTF</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">weightTF</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setWeightTF-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setWeightTF-expanded"><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-39" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-39', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="TermsDict.TermsDict.WeightTF" class="py-name" href="#" onclick="return doclink('link-40', 'WeightTF', 'link-5');">WeightTF</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">weightTF</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.getWeight"></a><div id="TermsDict.getWeight-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="TermsDict.getWeight-toggle" onclick="return toggle('TermsDict.getWeight');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#getWeight">getWeight</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.getWeight-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.getWeight-expanded"><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-41" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-41', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="TermsDict.TermsDict.Weight
Weight
Weight.Weight" class="py-name" href="#" onclick="return doclink('link-42', 'Weight', 'link-6');">Weight</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"> </tt>
<a name="TermsDict.setWeight"></a><div id="TermsDict.setWeight-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="TermsDict.setWeight-toggle" onclick="return toggle('TermsDict.setWeight');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="TermsDict.TermsDict-class.html#setWeight">setWeight</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">terms</tt><tt class="py-op">,</tt> <tt class="py-param">weight</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TermsDict.setWeight-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="TermsDict.setWeight-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">terms</tt><tt class="py-op">[</tt><tt id="link-43" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-43', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="TermsDict.TermsDict.Weight
Weight
Weight.Weight" class="py-name" href="#" onclick="return doclink('link-44', 'Weight', 'link-6');">Weight</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">weight</tt> </tt>
</div></div><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-name">termsDict</tt> <tt class="py-op">=</tt> <tt id="link-45" class="py-name"><a title="TermsDict
TermsDict.TermsDict" class="py-name" href="#" onclick="return doclink('link-45', 'TermsDict', 'link-9');">TermsDict</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">    <tt class="py-name">termsDict</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="TermsDict.TermsDict.save" class="py-name" href="#" onclick="return doclink('link-46', 'save', 'link-20');">save</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">termsDict</tt><tt class="py-op">.</tt><tt class="py-name">filesDate</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >BIS</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Wed Aug 29 14:21:30 2007
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
